import { DEFAULT_LAYOUT } from '../base';
import { AppRouteRecordRaw } from '../types';

const DASHBOARD: any = [
  {
    path: '/production',
    name: 'production',
    component: DEFAULT_LAYOUT,
    meta: {
      locale: 'menu.production',
      requiresAuth: true,
      icon: 'icon-list',
      order: 8,
    },
    children: [
      {
        path: 'machine',
        name: 'machine',
        component: () => import('@/views/production/machine/index.vue'),
        meta: {
          locale: 'menu.production.machine',
          requiresAuth: true,
          roles: ['*'],
          icon: 'icon-bug',
        },
      },
      {
        path: 'versionmanage',
        name: 'versionmanage',
        component: '',
        meta: {
          locale: 'menu.version.management',
          requiresAuth: true,
          roles: ['*'],
          icon: 'icon-bulb',
        },
        children: [
          {
            path: 'electrical',
            name: 'electrical',
            component: () =>
              import('@/views/production/versionmanage/electrical/index.vue'),
            meta: {
              locale: 'menu.production.electrical',
              requiresAuth: true,
              roles: ['*'],
              icon: 'icon-bug',
            },
          },
          {
            path: 'plate',
            name: 'plate',
            component: () =>
              import('@/views/production/versionmanage/plate/index.vue'),
            meta: {
              locale: 'menu.production.plate',
              requiresAuth: true,
              roles: ['*'],
              icon: 'icon-bug',
            },
          },
        ],
      },

      // {
      //     path: 'platemodule',
      //     name: 'platemodule',
      //     component: () => import('@/views/production/platemodule/index.vue'),
      //     meta: {
      //         locale: 'menu.production.platemodule',
      //         requiresAuth: true,
      //         roles: ['*'],
      //     },
      // },
      /*  {
            path: 'platemodulepart',
            name: 'platemodulepart',
            component: () => import('@/views/production/platemodulepart/index.vue'),
            meta: {
                locale: 'menu.production.platemodulepart',
                requiresAuth: true,
                roles: ['*'],
            },
        },*/
      // {
      //     path: 'properties',
      //     name: 'properties',
      //     component: () => import('@/views/production/properties/index.vue'),
      //     meta: {
      //         locale: 'menu.production.properties',
      //         requiresAuth: true,
      //         roles: ['*'],
      //     },
      // },
    ],
  },
];

export default DASHBOARD;
